﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Microsoft.Xna.Framework;

namespace POB
{
    abstract class Component
    {
        public Unit Unit { get; set; }
        public Player Player { get; set; }
        public World World { get; set; }

        public Component(XElement unitElement, World world, Player player, Unit unit)
        {
            this.Unit = unit;
            this.Player = player;
            this.World = world;
        }

        public virtual void Update(float time)
        {
        }

        public virtual void Draw(float time, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, Matrix matrix)
        {
        }
    }
}
